#include <bits/stdc++.h>
using namespace std;
int main()
{
    int box = 0;
    for (int i = 1; i <= 4; i++)
    {
        int cj;
        cin >> cj;
        if (cj >= 90)
            box++;
        else if (cj < 60)
        {
            cout << "Poor LangYangYang";
            return 0;
        }
    }
    if( box==4) box++;
    cout <<box;

    return 0;
}